package com.wonders.auth.module.po;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author wonders
 */
@Data
@TableName("sys_rule")
public class Role extends Model<Role> implements Serializable {
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;
    private Integer parentId;
    private String name;
    /**
     * 当前部门是否是个叶子节点，叶子节点不可继续添加子部门
     * type: 1-是，0-否
     */
    private Integer type;
    /**
     * 角色标识符
     */
    private String remarks;
    private Integer createBy;
    private Date createTime;
    private Date updateTime;
}
